Skip to main content

Refunding Transaction

Details

URL : <base_url>/giftcards/transaction/refund

Method : POST

Authentication required : YES

Post body type: Form Data

Request parameters

In the request URL, provide the following parameters in the body of the request.

ParameterTypeExampleDescription
idinteger1234Id of transaction
amountnumeric2399.33Amount to refund
reference_numberstring15673883External identifier

Success Response

Code : 200 OK

Content :

{
"data": {
"transaction": {
"id": 77756,
"refunded_amount": "800",
"activity_id": 77762
}
}
}

Error Responses

Condition : Incorrect code.

Code : 400 BAD REQUEST

Content :

{
"success": false,
"message": "Invalid transaction or already refunded"
}